multiple inheritance

multiple inheritance

 英

  • 网络多重继承;多继承;多级继承

例句

Consider defining interfaces to achieve an effect similar to that of multiple inheritance.

考虑定义接口达到类似多重继承效果

Specifies the most general representation of a pointer to a member of a class to be one that uses multiple inheritance .

指定指向成员指针通用表示形式使用多重继承表示形式

Perl supports multiple inheritance, though two or more parents are rarely seen in practice.

尽管两个以上对象实际上少见Perl支持多重继承

Classes that serve as base classes in a multiple-inheritance hierarchy ordinarily should define their destructors to be virtual.

多重继承层次作为通常应该它们析构函数定义函数

Since . NET does not support multiple inheritance, this constraint limits where Enterprise Services can be utilized.

既然.NET支持继承这个约束限制企业服务EnterpriseService使用地方

The Java language doesn't support multiple inheritance, but you can come awfully close with a couple of @Delegates, as shown in Listing 8.

Java语言并不支持多重继承但是可以非常接近一对@Delegate,清单8所示

My hunch is that this could get tricky in practice once you deal with custom classes and multiple inheritance.

觉得处理定制多重继承编写定制比较函数实际上需要技巧

Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse.

遗憾彻底放弃私有继承多重继承使我们代码重用方面付出昂贵代价

Another approach to the Expression Problem is multiple inheritance, in which one subclass can extend many superclasses.

表达式问题一种方法多重继承一个子类扩展许多

When we fast-forward to the Java language, we perceive that multiple inheritance is just as flawed as private inheritance.

快速转向Java语言我们认为多重继承私有继承一样存在缺陷

The former is more advantageous, 'cause when you are going for multiple inheritance. . . the only interface can help.

起因多重继承只有借助接口

They are comparable to C++ multiple inheritance constructs but omit the nasty side-effect known as the diamond syndrome.

类似C++继承概念但却没有众所周知diamondsyndrome副作用

Using multiple inheritance in C++ could lead to the problem of multiple copies of a base class for a particular multiply-inheriting class.

C++使用多重继承对于某个使用多重继承特定而言可能使出现多个副本从而导致问题发生

However, multiple inheritance being used only for interface implementation was thought to alleviate this problem somewhat.

不过多重继承只能认为可以减轻问题接口实现

Using Multiple Interfaces - Multiple inheritance is not possible in C# using classes; however, you can implement multiple interfaces.

C#使用多重继承不可能但是可以实现多个接口

With modules, you can get some of the benefits of multiple inheritance without the sticky complications.

通过使用模块可以享受多重继承优点而无需面对令人头痛复杂性

Types can satisfy many interfaces at once, without the complexities of traditional multiple inheritance.

类型能干可以同时满足很多接口避免传统多层继承复杂

Multiple inheritance supports a much richer inheritance hierarchy for the problems that require it.

如果需要多重继承支持丰富继承层次结构

Virtual base classes offer a way to save space and avoid ambiguities in class hierarchies that use multiple inheritance.

提供一种节省空间方法,并使用多重继承避免产生

Because Python supports multiple inheritance, abstraction can be taken to a level of complexity that is quite unhealthy.

由于Python支持多重继承抽象可以达到相当有害复杂程度

The Java founders eliminated multiple inheritance to address those complications.

Java创建通过消除多重继承解决这种复杂性

Scala supports single inheritance, not multiple inheritance.

Scala支持继承支持继承

You can think of mix-ins as multiple inheritance without the multiple-inheritance headaches.

可以mix-in看成多重继承但是没有多重继承麻烦

Java also eliminates the operator overloading and multiple inheritance features of C++.

Java除了C++操作符重载继承特性

On the other hand, allowing for multiple inheritance in a programming language results in tremendous semantic complexity.

另一方面编程语言允许多重继承结果语义极其复杂

Multiple inheritance, on the other hand, was commonly held as a necessary element of object-oriented programming.

另一方面多重继承往往视为面向对象编程必备要素

The use of templates and multiple inheritance makes the library small and flexible.

使用模板多重继承可以使小巧灵活

For example, a constraint may disallow multiple inheritance, or it may require that a class must have a particular type of attribute.

例如一个限制可能不允许多重继承或者可能需要一个必须具备一个特殊属性类型

A parent class to extend function from (plus any "mix-in" classes to simulate multiple inheritance)

用于扩展函数以及模拟多个继承混合

Class (resembles a managed class shape, except that it can have multiple inheritance relationships)

托管形状类似只不过可以具有多重继承关系